//
//  TicketInfoDataModel.h
//  ShowTimeApp
//
//  Created by Ruby on 11/6/11.
//  Copyright 2011 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BaseDataModel.h"
#import "TicketInfo.h"
#import "CinemaService.h"

@interface TicketInfoDataModel : BaseDataModel {
    
}
//Khoi tao CinemaDataModel
-(id)initTicketInfoDataModel;
//Them 1 object (TicketInfo) vao data model
-(void)insertObject:(id)ticketinfo;
//Them 1 danh sach cac objetc vao data model
-(void)insertObjects:(NSMutableArray *)ticketInfoList;
//Lay toan bo showtime theo cinemaID va sap xep tang theo ID
-(NSMutableArray*)getAllTickeInfoOfCinemaSortByIDAscending:(int)cinemaID;
//Lay chi tiet showtime
-(TicketInfo*)getDetailByID:(int) ID;
-(void)deleteAll;
//Chuyen doi kieu object tu kieu service entity sang TicketInfo (data model)
+(TicketInfo*)convertFromCinemaService_TicketInfoEntity:(CinemaService_TicketInfoEntity*)svTicketInfoEntity TodbTicketInfoEntity:(TicketInfo*)dbTicketInfoEntity;

//Ham xuat danh sach movie de test
-(void)output:(NSMutableArray*)ticketinfoList;
@end
